<div id="user" style="background-color:#FFFFCC;padding:2px;font-size:10px;color:black;text-align:center;display:none"></div>
	
	<?php if ($sf_request->hasErrors()): ?>
	
				<div align="center" id="errorline" style="width:100%;padding:10px;background-color:#FFFFCC;border-bottom:1px solid #E3E3B4;color:#2C2C2C;text-align:center;display:none">
					<center>
					<div style="width:100%;text-align:left;">
					<ul style="padding-top:3px;padding-bottom:0px;margin:0px;list-style-image: url(/images/icons/exclamation.png);">
				  <?php foreach ( $sf_request->getErrors() as $error) 
				    {
						echo '<li style="padding-top:0px;padding-bottom:5px;margin:0px">';
						echo '<span style="font-size:12px;">'.$error.'</span>';
						echo '</li>';


				    }?>
					</ul>
					</div>
					</center>
			</div>
			<script>

			$('errorline').hide();
		  new Effect.Appear('errorline'); 

			</script>
		
		
	<?php endif;?>
		
			
<?php echo form_tag('/editcompany/'.$company->getId(),'method=post multipart=true') ?> 



<div style="border-bottom:5px solid silver;color:#392E1A;padding-bottom:10px;padding-top:10px;font-size:35px;">
ערוך חברה

<?php echo $company->getName();?>

</div>

<div style="text-align:right;padding:10px;">

<img src="<?php echo $company->getLogoUrl();?>">

		

<table width="100%">

<tr><td colspan="2"><div style="border-top:1px solid #ECECEC;font-size:12px;color:#000;font-weight:bold;padding-bottom:10px;padding-top:10px;margin-top:10px;">מידע כללי</div></td></tr>

<tr>
<td>
<span style="font-size:12px;color:#000">שם לועזי: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_tag('name', $company->getName(),'style="width:350px;"') ?> </span></td>
</tr>

<tr>
<td width="10%">
<span style="font-size:12px;color:#000">שם עברי: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_tag('hebrewname', $company->getNameHebrew(),'style="width:350px;" dir="rtl"') ?> </span><br>		
</td>
</tr>



<tr>
<td>
<span style="font-size:12px;color:#000">שנת הקמה: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_tag('founded', $company->getFounded(),'style="width:350px;"') ?> </span>		


<tr>
<td>
<span style="font-size:12px;color:#000">דוא"ל: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_tag('email', $company->getEmail(),'style="width:350px;"') ?> </span>		
</td>
</tr>


<tr>
<td>
<span style="font-size:12px;color:#000">מיקום: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_tag('location', $company->getLocation(),'style="width:350px;"') ?> </span>	
</td>
</tr>

<tr>
<td>
<span style="font-size:12px;color:#000">אתר: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_tag('url', $company->getUrl(),'style="width:350px;"') ?> </span>	
</td>
</tr>

<tr>
<td>
<span style="font-size:12px;color:#000">בלוג: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_tag('blogurl', $company->getBlogUrl(),'style="width:350px;"') ?> </span>	
</td>
</tr>

<tr>
<td>
<span style="font-size:12px;color:#000">רסס: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_tag('rssurl', $company->getRssUrl(),'style="width:350px;"') ?> </span>
</td>
</tr>

<tr>
<td>
<span style="font-size:12px;color:#000">טוויטר:</span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_tag('twitteruser', $company->getTwitterUser(),'style="width:350px;"') ?>@</span>
</td>
</tr>

<tr>
<td>
<span style="font-size:12px;color:#000">טלפון: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_tag('phonenumber', $company->getPhoneNumber(),'style="width:350px;"') ?> </span>
</td>
</tr>

<tr>
<td>
<span style="font-size:12px;color:#000">סבבי גיוס: </span>
</td>
<td>
<div style="width:360px;text-align:left;">
<span style="font-size:12px;color:#5f5f5f;direction:ltr;" dir="ltr">

	<input type="checkbox" name="rounds[]" value="Seed Round" />Seed Round &nbsp;,
    <input type="checkbox" name="rounds[]" value="Angel Round" />Angel Round &nbsp;,
    <input type="checkbox" name="rounds[]" value="Series A" />Series A &nbsp;,
    <input type="checkbox" name="rounds[]" value="Series B" />Series B &nbsp;,
    <input type="checkbox" name="rounds[]" value="Series C" />Series C &nbsp;,
    <input type="checkbox" name="rounds[]" value="IPO" />IPO &nbsp;,
    <input type="checkbox" name="rounds[]" value="M&A" />M&A &nbsp;,
    <input type="checkbox" name="rounds[]" value="Bridge Loan" />Bridge Loan


<?php //echo input_tag('rounds', '','style="width:350px;display:none"') ?>
</span>
</div>
</td>
</tr>

<tr>
<td>
<span style="font-size:12px;color:#000">מקימים: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_tag('founders', $company->getFounders(),'style="width:350px;"') ?> </span>
</td>
</tr>

<tr>
<td>
<span style="font-size:12px;color:#000">מס עובדים: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_tag('numberemploy', $company->getNumberEmploy(),'style="width:350px;"') ?> </span>
</td>
</tr>

<tr>
<td>
<span style="font-size:12px;color:#000">תגיות: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f">


<?php

$tagsinput = '';
$tags = $company->getTag2CompanysJoinTags();
foreach ($tags as $tag) {

		$Tagss = $tag->getTags();

		//echo link_to($Tagss->getname().', ','/tags/?name='.$Tagss->getname().'');
		$tagsinput .= $Tagss->getName().',';


}


echo input_tag('tags', substr($tagsinput,0,-1),'style="width:350px;"') ?>


 </span><small>מופרד בפסיקים</small>
</td>
</tr>

<tr><td colspan="2"><div style="border-top:1px solid #ECECEC;font-size:12px;color:#000;font-weight:bold;padding-bottom:10px;padding-top:10px;margin-top:10px;">לוגו חברה</div>
</td></tr>

<tr>
<td>
<span style="font-size:12px;color:#000">בחר קובץ: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo input_file_tag('logourl', '','style="width:350px;"') ?> </span> 
</td>
</tr>


<tr><td colspan="2"><div style="border-top:1px solid #ECECEC;font-size:12px;color:#000;font-weight:bold;padding-bottom:10px;padding-top:10px;margin-top:10px;">תיאור החברה</div>
</td></tr>
<tr>
<td valign="top">
<span style="font-size:12px;color:#000">תקציר: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php echo textarea_tag('description', $company->getDescription(), 'style="width:350px;height:100px;font-size:14px;padding:5px;"')  ?> </span>
</td>		
</tr>

<tr>
<td>
<span style="font-size:12px;color:#000">מצב פירסום: </span>
</td>
<td>
<span style="font-size:12px;color:#5f5f5f"><?php 

$publishstate = $company->getPublishState();

if ($publishstate == 'published') {

echo select_tag('publishstate',
  '<option selected="selected" value="published">Published</option>
   <option value="draft">Draft</option>');
   
 } else {
 
 echo select_tag('publishstate',
  '<option value="published">Published</option>
   <option selected="selected" value="draft">Draft</option>');
   
 
 }  
   
?>
 </span>
 </td>	
</tr>

<tr>
<td colspan="2">
<br>
<br>
<?php echo submit_tag('שמור חברה') ?>

<?php echo link_to('<img src="/images/icons/delete.png"> מחק חברה','/deletecompany/'.$company->getId(),'style="color:red"');?>

</td>
</tr>


</table>




<?php echo input_hidden_tag('referer', $sf_request->getAttribute('referer')) ?>

		<Br>
</div>
		


	


		
	</form>
	
